]> dgit.raspbian.org Git - gnome-shell.git/commit
altTab: Only calculate iconSize once
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 25 Apr 2018 23:36:41 +0000 (01:36 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 25 Jan 2022 20:03:01 +0000 (20:03 +0000)
commitc8f3db31b896fea895c04b1745bb9cafa3ef2d6d
treea20e7b049e991ae2600900841b9ceb6521379073
parent7f65fa49db1dcc8df91627bf30df58427056d3af
altTab: Only calculate iconSize once

Right now, _setIconSize() calculates the icon size everytime the
preferred height of AppSwitcher is calculated, which happens quite
often.

Reduce the perfomance impact by only calculating the icon size once.
This has the added benefit of preventing unexpected changes to the icon
sizes while the switcher is open.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2098>
js/ui/altTab.js